<?php
set_time_limit(0);
$basePath = realpath(dirname(__file__) . '/../');
require_once ($basePath . "/inc/helper_functions.php");
require_once ($basePath . "/inc/database_functions.php");
require_once ($basePath . "/inc/html_generators.php");
require_once ($basePath . "/inc/log_file_handling.php");
  
?>

<a href="index.php">Back</a>

<?php  
  
connectToDatabase(); 
    
$result = getMostPopularWebsites(true);
display_table($result, "Ten most popular websites");

closeDatabaseConnection();
?>